package com.yuanhua.xcxmng.wechat.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author hzy24985
 * @version $Id: BaseResult, v 0.1 2018/8/7 下午3:31 hzy24985 Exp $
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseResult implements Serializable {
    /**服务是否执行成功*/
    private boolean success = false;

    /** 错误码 */
    private int     errorCode;

    /** 错误信息 */
    private String  errorMessage;

    public BaseResult(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }
}
